Logger::config().info(" SMF_INSTANCE_ID(%d) : (%s:%s) version(%s) is selected(%s)",smf_pool[i].id,smf_pool[i].ipv4.c_str(),smf_pool[i].port.c_str(),smf_pool[i].version.c_str(),selected.c_str());
Logger::config().info(" SMF_INSTANCE_ID %d (%s:%s, version %s) is selected: %s",smf_pool[i].id,smf_pool[i].ipv4.c_str(),smf_pool[i].port.c_str(),smf_pool[i].version.c_str(),selected.c_str());
@@ -182,10 +182,10 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
}
association->messages_recv++;
if(ntohl(sinfo.sinfo_ppid)!=association->ppid){
Logger::sctp().error("Received data from peer with unsolicited PPID(%d), expecting(%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
Logger::sctp().error("Received data from peer with unsolicited PPID (%d), expecting (%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
returnSCTP_RC_ERROR;
}
Logger::sctp().info("[assoc_id(%d)][socket(%d)] Msg of length(%d) received from port(%d), on stream(%d), PPID(%d)",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));
Logger::sctp().info("[Assoc_id (%d)][Socket (%d)] Received a msg (length %d) from port %d, on stream %d, PPID %d",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));
Logger::sctp().error("This assoc id(%d) has not been fount in list",sctp_assoc_id);
Logger::sctp().error("This assoc id(%d) has not been fount in list",sctp_assoc_id);
return-1;
}
if(assoc_desc->sd==-1){
Logger::sctp().error("The socket is invalid may be closed (assoc id %d)",sctp_assoc_id);
return-1;
}
Logger::sctp().debug("[%d][%d] Sending buffer %p of %d bytes on stream %d with ppid %d",assoc_desc->sd,sctp_assoc_id,bdata(*payload),blength(*payload),stream,assoc_desc->ppid);
Logger::sctp().debug("[Socket %d, Assoc ID %d] Sending buffer %p of %d bytes on stream %d with ppid %d",assoc_desc->sd,sctp_assoc_id,bdata(*payload),blength(*payload),stream,assoc_desc->ppid);