retVal = (this->*Constructp)(addressFamily, socketType, protocol);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Construct", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN, "", 0,
- hostinfo, "ddd", addressFamily, socketType, protocol);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN,
+ info, "ddd", addressFamily, socketType, protocol);
return retVal;
}
protocol);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Construct", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN, "", 0,
- hostinfo, "xddd",
- (unsigned int)&netConnection, addressFamily, socketType, protocol);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN,
+ info, "xddd",
+ (uint64_t)(&netConnection), addressFamily, socketType, protocol);
return retVal;
}
AcceptNp);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::AcceptN", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_START, "",
- 0, hostinfo, "s", "void");
+ (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_START,
+ info, "s", "void");
pret = (this->*AcceptNp)();
if (pret == NULL)
newerrno = 1;
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::AcceptN", VT_PTR, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_END, "",
- 0, hostinfo, "s", "void");
+ (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_END,
+ info, "s", "void");
return pret;
}
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
- hostinfo.port = remoteEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
+ info.host_port = remoteEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
retVal = (this->*Connectp)(remoteEndPoint);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Connect", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_CONNECT, "", 0,
- hostinfo, "s", addressInfo);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_CONNECT,
+ info, "s", addressInfo);
return retVal;
}
retVal = (this->*Closep)();
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Close", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_FD_CLOSE, "", 0,
- hostinfo, "s", "void");
+ (unsigned int)this, (unsigned int)this, SOCKET_API_FD_CLOSE,
+ info, "s", "void");
return retVal;
}
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, localEndPoint.GetPort());
- hostinfo.port = localEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
+ info.host_port = localEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Bind", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_BIND, "", 0,
- hostinfo, "s", addressInfo);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_BIND,
+ info, "s", addressInfo);
return retVal;
}
retVal = (this->*Listenp)(backLog);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Listen", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_LISTEN, "", 0,
- hostinfo, "d", backLog);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_LISTEN,
+ info, "d", backLog);
return retVal;
}
Receivep);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Receive", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START, "",
- 0, hostinfo, "x", (unsigned int)&buffer);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START,
+ info, "x", (uint64_t)(&buffer));
pret = (this->*Receivep)(buffer);
- int bufferSize = buffer.GetLimit();
- char* pBuffer = (char*) (buffer.GetPointer());
- Tizen::Base::String strData;
- strData.SetCapacity(bufferSize);
- strData.Append(pBuffer);
- char* out = new char[bufferSize];
- WcharToChar(out, strData.GetPointer());
- int socketSendSize = SOCKET_SEND_SIZE;
- if (socketSendSize != 0 && socketSendSize < bufferSize) {
- out[socketSendSize + 1] = '.';
- out[socketSendSize + 2] = '.';
- out[socketSendSize + 3] = '.';
- out[socketSendSize + 4] = '\0';
- }
+ info.msg_total_size = buffer.GetLimit();
+ info.msg_pack_size = info.msg_total_size;
+ info.msg_buf = (char*)(buffer.GetPointer());
+
+ if (info.msg_pack_size > SOCKET_SEND_SIZE)
+ info.msg_pack_size = SOCKET_SEND_SIZE;
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Receive", VT_ULONG, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END, out,
- buffer.GetLimit(), hostinfo, "x", (unsigned int)&buffer);
- delete [] out;
+ (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
+ info, "x", (uint64_t)(&buffer));
return pret;
}
_ZNK5Tizen3Net7Sockets6Socket11ReceiveFromEPviRNS0_11NetEndPointERi,
Receivep);
- AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Receive", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START, "",
- 0, hostinfo, "xdx",
- (unsigned int)&pBuffer, length, rcvdLength);
+ AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Receive", VT_NULL,
+ NULL,
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_RECV_START,
+ info, "xdx",
+ (uint64_t)(&pBuffer),
+ length,
+ (uint64_t)(rcvdLength));
pret = (this->*Receivep)(pBuffer, length, rcvdLength);
-
- AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Receive", VT_ULONG, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
- (char*)pBuffer, length, hostinfo, "xdx",
- (unsigned int)&pBuffer, length, rcvdLength);
+ info.msg_buf = (char *)pBuffer;
+ info.msg_total_size = rcvdLength;
+ info.msg_pack_size = rcvdLength > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : rcvdLength;
+
+ AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Receive", VT_ULONG,
+ pret,
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_RECV_END,
+ info, "xdx",
+ (uint64_t)(&pBuffer), length,
+ (uint64_t)(rcvdLength));
return pret;
}
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
- hostinfo.port = remoteEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
+ info.host_port = remoteEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::ReceiveFrom", VT_NULL,
NULL, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START,
- "", 0,
- hostinfo, "xs", (unsigned int)&buffer, temp);
+
+ info, "xs", (uint64_t)(&buffer), temp);
pret = (this->*ReceiveFromp)(buffer, remoteEndPoint);
strData.Append(pBuffer);
char* out = new char[bufferSize];
WcharToChar(out, strData.GetPointer());
- int socketSendSize = SOCKET_SEND_SIZE;
- if (socketSendSize != 0 && socketSendSize < bufferSize) {
- out[socketSendSize + 1] = '.';
- out[socketSendSize + 2] = '.';
- out[socketSendSize + 3] = '.';
- out[socketSendSize + 4] = '\0';
- }
+
+ info.msg_buf = out;
+ info.msg_total_size = bufferSize;
+ info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::ReceiveFrom", VT_ULONG,
pret, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
- out, buffer.GetLimit(), hostinfo, "xs",
- (unsigned int)&buffer, temp);
+ info, "xs", (uint64_t)(&buffer), temp);
delete [] out;
return pret;
}
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
- hostinfo.port = remoteEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
-
- AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::ReceiveFrom", VT_NULL,
- NULL, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START,
- "", 0, hostinfo, "xdsx",
- (unsigned int)&pBuffer, length, temp, rcvdLength);
+ info.host_port = remoteEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
+
+ AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::ReceiveFrom",
+ VT_NULL,
+ NULL, (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_RECV_START,
+ info, "xdsx",
+ (uint64_t)(&pBuffer),
+ length, temp,
+ (uint64_t)(rcvdLength));
pret = (this->*ReceiveFromp)(pBuffer, length, remoteEndPoint, rcvdLength);
+ info.msg_buf = (char *)pBuffer;
+ info.msg_total_size = length;
+ info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
+
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::ReceiveFrom", VT_ULONG,
- pret, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
- (char*)pBuffer, length, hostinfo, "xdsx",
- (unsigned int)&pBuffer, length, temp, rcvdLength);
+ pret, (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_RECV_END,
+ info, "xdsx",
+ (uint64_t)(&pBuffer),
+ length, temp,
+ (uint64_t)(rcvdLength));
return pret;
}
_ZN5Tizen3Net7Sockets6Socket4SendERNS_4Base10ByteBufferE, Sendp);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Send", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START, "",
- 0, hostinfo, "x", (unsigned int)&buffer);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_START,
+ info, "x",
+ (uint64_t)(&buffer));
pret = (this->*Sendp)(buffer);
int bufferSize = buffer.GetLimit();
strData.Append(pBuffer);
char* out = new char[bufferSize];
WcharToChar(out, strData.GetPointer());
- int socketSendSize = SOCKET_SEND_SIZE;
- if (socketSendSize != 0 && socketSendSize < bufferSize) {
- out[socketSendSize + 1] = '.';
- out[socketSendSize + 2] = '.';
- out[socketSendSize + 3] = '.';
- out[socketSendSize + 4] = '\0';
- }
+
+ info.msg_buf = out;
+ info.msg_total_size = bufferSize;
+ info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
+
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Send", VT_ULONG, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_END, out,
- buffer.GetLimit(), hostinfo, "x", (unsigned int)&buffer);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_END,
+ info, "x",
+ (uint64_t)(&buffer));
delete [] out;
return pret;
}
Sendp);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Send", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START, "",
- 0, hostinfo, "xdx",
- (unsigned int)&pBuffer, length, (unsigned int)&sentLength);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_START,
+ info, "xdx",
+ (uint64_t)(&pBuffer),
+ length,
+ (uint64_t)(&sentLength));
pret = (this->*Sendp)(pBuffer, length, sentLength);
+ info.msg_buf = (char *)pBuffer;
+ info.msg_total_size = length;
+ info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
+
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Send", VT_ULONG, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_END,
- (char*)pBuffer, length, hostinfo, "xdx",
- (unsigned int)&pBuffer, length, (unsigned int)&sentLength);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_END,
+ info, "xdx",
+ (uint64_t)(&pBuffer), length,
+ (uint64_t)(&sentLength));
return pret;
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
- hostinfo.port = remoteEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
+ info.host_port = remoteEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::SendTo", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START, "",
- 0, hostinfo, "xs", (unsigned int)&buffer, temp);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_START,
+ info, "xs",
+ (uint64_t)(&buffer),
+ temp);
pret = (this->*SendTop)(buffer, remoteEndPoint);
strData.Append(pBuffer);
char* out = new char[bufferSize];
WcharToChar(out, strData.GetPointer());
- int socketSendSize = SOCKET_SEND_SIZE;
- if (socketSendSize != 0 && socketSendSize < bufferSize) {
- out[socketSendSize + 1] = '.';
- out[socketSendSize + 2] = '.';
- out[socketSendSize + 3] = '.';
- out[socketSendSize + 4] = '\0';
- }
+
+ info.msg_buf = out;
+ info.msg_total_size = bufferSize;
+ info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::SendTo", VT_ULONG, pret,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_END, out,
- buffer.GetLimit(), hostinfo, "xs", (unsigned int)&buffer, temp);
+ (unsigned int)this,
+ (unsigned int)this,
+ SOCKET_API_SEND_END,
+ info, "xs",
+ (uint64_t)(&buffer),
+ temp);
delete [] out;
return pret;
}
WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
char addressInfo[64];
sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
- hostinfo.port = remoteEndPoint.GetPort();
- iv4PeerAddr->GetAddress(&hostinfo.ip);
+ info.host_port = remoteEndPoint.GetPort();
+ iv4PeerAddr->GetAddress(&info.host_ip);
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::SendTo", VT_NULL, NULL,
- (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START, "",
- 0, hostinfo, "xdsx,",
+ (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START,
+ info, "xdsx,",
(unsigned int)&pBuffer, length, temp, (unsigned int)&sentLength);
pret = (this->*SendTop)(pBuffer, length, remoteEndPoint, sentLength);
+ info.msg_buf = (char *)pBuffer;
+ info.msg_total_size = length;
+ info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
+
AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::SendTo", VT_ULONG, pret,
(unsigned int)this, (unsigned int)this, SOCKET_API_SEND_END,
- (char*)pBuffer, length, hostinfo, "xdsx,",
- (unsigned int)&pBuffer, length, temp, (unsigned int)&sentLength);
+ info, "xdsx,", (unsigned int)&pBuffer, length, temp,
+ (unsigned int)&sentLength);
return pret;
retVal = (this->*AddSocketListenerp)(listener);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::AddSocketListener", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
+ (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
"x", (unsigned int) &listener);
return retVal;
retVal = (this->*AsyncSelectByListenerp)(socketEventType);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::AsyncSelectByListener", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
+ (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
"x", socketEventType);
return retVal;
retVal = (this->*Ioctlp)(cmd, value);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::Ioctl", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "dx", cmd, (unsigned int) &value);
+ (unsigned int)this, (unsigned int)this,
+ SOCKET_API_OTHER, info,
+ "dx", cmd, (uint64_t)(&value));
return retVal;
}
retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
+ (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
"ddd", optionLevel, optionName, optionValue);
return retVal;
retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "ddx",
- optionLevel, optionName, (unsigned int) &optionValue);
+ (unsigned int)this, (unsigned int)this,
+ SOCKET_API_OTHER, info,
+ "ddx", optionLevel, optionName,
+ (uint64_t)(&optionValue));
return retVal;
}
retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "ddx",
- optionLevel, optionName, (unsigned int) &optionValue);
+ (unsigned int)this, (unsigned int)this,
+ SOCKET_API_OTHER, info,
+ "ddx", optionLevel, optionName,
+ (uint64_t)(&optionValue));
return retVal;
}
retVal = (this->*GetSockOptp)(optionLevel, optionName, optionValue);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::GetSockOpt", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "ddx",
- optionLevel, optionName, (unsigned int) &optionValue);
+ (unsigned int)this, (unsigned int)this,
+ SOCKET_API_OTHER, info,
+ "ddx", optionLevel, optionName,
+ (uint64_t)(&optionValue));
return retVal;
}
retVal = (this->*GetSockOptp)(optionLevel, optionName, optionValue);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::GetSockOpt", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "ddx",
- optionLevel, optionName, (unsigned int) &optionValue);
+ (unsigned int)this, (unsigned int)this,
+ SOCKET_API_OTHER, info,
+ "ddx", optionLevel, optionName,
+ (uint64_t)(&optionValue));
return retVal;
}
retVal = (this->*RemoveSocketListenerp)(listener);
AFTER_ORIGINAL_TIZEN_SOCK("Socket::RemoveSocketListener", VT_ULONG, retVal,
- (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, "", 0, hostinfo,
- "x", (unsigned int) &listener);
+ (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
+ "x", (uint64_t)(&listener));
return retVal;
}