mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
cut down on printing; don't assert-fail when relay's crashed.
This commit is contained in:
parent
2c5c7a0dd1
commit
635ae053b6
1 changed files with 5 additions and 5 deletions
|
@ -165,7 +165,6 @@ do_msgs( int sockfd, const char** connNames, int nConnNames )
|
|||
static void
|
||||
do_deletes( int sockfd, const char** connNames, int nConnNames )
|
||||
{
|
||||
fprintf( stderr, "%s()\n", __func__ );
|
||||
int ii;
|
||||
|
||||
char buf[4096];
|
||||
|
@ -178,7 +177,6 @@ do_deletes( int sockfd, const char** connNames, int nConnNames )
|
|||
*(seedp++) = '\0'; /* skip */
|
||||
unsigned int seed;
|
||||
sscanf( seedp, "%X", &seed );
|
||||
fprintf( stderr, "read %s to %x\n", seedp, seed );
|
||||
short netshort = htons( (short)seed );
|
||||
memcpy( &buf[nused], &netshort, sizeof(netshort) );
|
||||
nused += sizeof(netshort);
|
||||
|
@ -204,9 +202,11 @@ do_deletes( int sockfd, const char** connNames, int nConnNames )
|
|||
|
||||
unsigned char reply[2];
|
||||
int nRead = read_packet( sockfd, reply, sizeof(reply) );
|
||||
fprintf( stderr, "read %d back\n", nRead );
|
||||
assert( nRead == 0 );
|
||||
}
|
||||
if ( nRead != 0 ) {
|
||||
fprintf( stderr, "%s: nRead=%d; errno=%d (%s)\n", __func__,
|
||||
nRead, errno, strerror(errno) );
|
||||
}
|
||||
} /* do_deletes */
|
||||
|
||||
int
|
||||
main( int argc, char * const argv[] )
|
||||
|
|
Loading…
Reference in a new issue