mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +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
|
static void
|
||||||
do_deletes( int sockfd, const char** connNames, int nConnNames )
|
do_deletes( int sockfd, const char** connNames, int nConnNames )
|
||||||
{
|
{
|
||||||
fprintf( stderr, "%s()\n", __func__ );
|
|
||||||
int ii;
|
int ii;
|
||||||
|
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
|
@ -178,7 +177,6 @@ do_deletes( int sockfd, const char** connNames, int nConnNames )
|
||||||
*(seedp++) = '\0'; /* skip */
|
*(seedp++) = '\0'; /* skip */
|
||||||
unsigned int seed;
|
unsigned int seed;
|
||||||
sscanf( seedp, "%X", &seed );
|
sscanf( seedp, "%X", &seed );
|
||||||
fprintf( stderr, "read %s to %x\n", seedp, seed );
|
|
||||||
short netshort = htons( (short)seed );
|
short netshort = htons( (short)seed );
|
||||||
memcpy( &buf[nused], &netshort, sizeof(netshort) );
|
memcpy( &buf[nused], &netshort, sizeof(netshort) );
|
||||||
nused += sizeof(netshort);
|
nused += sizeof(netshort);
|
||||||
|
@ -204,9 +202,11 @@ do_deletes( int sockfd, const char** connNames, int nConnNames )
|
||||||
|
|
||||||
unsigned char reply[2];
|
unsigned char reply[2];
|
||||||
int nRead = read_packet( sockfd, reply, sizeof(reply) );
|
int nRead = read_packet( sockfd, reply, sizeof(reply) );
|
||||||
fprintf( stderr, "read %d back\n", nRead );
|
if ( nRead != 0 ) {
|
||||||
assert( nRead == 0 );
|
fprintf( stderr, "%s: nRead=%d; errno=%d (%s)\n", __func__,
|
||||||
|
nRead, errno, strerror(errno) );
|
||||||
}
|
}
|
||||||
|
} /* do_deletes */
|
||||||
|
|
||||||
int
|
int
|
||||||
main( int argc, char * const argv[] )
|
main( int argc, char * const argv[] )
|
||||||
|
|
Loading…
Reference in a new issue