|
|
@ -583,7 +583,7 @@ BOOL TcpRecv(int commid, int fds, u_long ipaddr)
|
|
|
|
|
|
|
|
|
|
|
|
void TcpSend(int commid)
|
|
|
|
void TcpSend(int commid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int len, plen, slen;
|
|
|
|
int len, plen, slen, i;
|
|
|
|
|
|
|
|
|
|
|
|
if(OPEN_PORT != SioParam[commid].OpenFlag)
|
|
|
|
if(OPEN_PORT != SioParam[commid].OpenFlag)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -614,6 +614,10 @@ void TcpSend(int commid)
|
|
|
|
len = send(SioParam[commid].CommSock,(const char*)&SioParam[commid].WriteData->MsgData[plen], slen, 0);
|
|
|
|
len = send(SioParam[commid].CommSock,(const char*)&SioParam[commid].WriteData->MsgData[plen], slen, 0);
|
|
|
|
if(len > 0)
|
|
|
|
if(len > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("TcpSend: ");
|
|
|
|
|
|
|
|
for (i = 0; i < len; i++)
|
|
|
|
|
|
|
|
printf("%02X ", SioParam[commid].WriteData->MsgData[plen + i]);
|
|
|
|
|
|
|
|
printf("\n");
|
|
|
|
if(len < slen)
|
|
|
|
if(len < slen)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(EINPROGRESS != errno)
|
|
|
|
if(EINPROGRESS != errno)
|
|
|
|