transport refactor

rename transport_read to transport_read_pdu. This name is more
descriptive what the function actually does.
This commit is contained in:
Bernhard Miklautz 2014-07-22 11:19:38 +02:00
parent f9fbbe23ff
commit 47dd22ba87
4 changed files with 5 additions and 5 deletions

View File

@ -503,7 +503,7 @@ BOOL nego_recv_response(rdpNego* nego)
if (!s)
return FALSE;
status = transport_read(nego->transport, s);
status = transport_read_pdu(nego->transport, s);
if (status < 0)
{
Stream_Free(s, TRUE);

View File

@ -1198,7 +1198,7 @@ int credssp_recv(rdpCredssp* credssp)
s = Stream_New(NULL, 4096);
status = transport_read(credssp->transport, s);
status = transport_read_pdu(credssp->transport, s);
Stream_Length(s) = status;
if (status < 0)

View File

@ -721,7 +721,7 @@ int transport_read_layer(rdpTransport* transport, BYTE* data, int bytes)
return read;
}
int transport_read(rdpTransport* transport, wStream* s)
int transport_read_pdu(rdpTransport* transport, wStream* s)
{
int status;
int position;
@ -847,7 +847,7 @@ static int transport_read_nonblocking(rdpTransport* transport)
{
int status;
status = transport_read(transport, transport->ReceiveBuffer);
status = transport_read_pdu(transport, transport->ReceiveBuffer);
if (status <= 0)
return status;

View File

@ -96,7 +96,7 @@ BOOL transport_accept_rdp(rdpTransport* transport);
BOOL transport_accept_tls(rdpTransport* transport);
BOOL transport_accept_nla(rdpTransport* transport);
void transport_stop(rdpTransport* transport);
int transport_read(rdpTransport* transport, wStream* s);
int transport_read_pdu(rdpTransport* transport, wStream* s);
int transport_write(rdpTransport* transport, wStream* s);
void transport_get_fds(rdpTransport* transport, void** rfds, int* rcount);
int transport_check_fds(rdpTransport* transport);