Lines Matching refs:server_info

334     *server_info;  in AcquireDistributeCacheInfo()  local
342 server_info=(DistributeCacheInfo *) AcquireCriticalMemory( in AcquireDistributeCacheInfo()
343 sizeof(*server_info)); in AcquireDistributeCacheInfo()
344 (void) memset(server_info,0,sizeof(*server_info)); in AcquireDistributeCacheInfo()
345 server_info->signature=MagickCoreSignature; in AcquireDistributeCacheInfo()
346 server_info->port=0; in AcquireDistributeCacheInfo()
347 hostname=GetHostname(&server_info->port,exception); in AcquireDistributeCacheInfo()
349 server_info->file=ConnectPixelCacheServer(hostname,server_info->port, in AcquireDistributeCacheInfo()
351 if (server_info->file == -1) in AcquireDistributeCacheInfo()
352 server_info=DestroyDistributeCacheInfo(server_info); in AcquireDistributeCacheInfo()
355 server_info->session_key=session_key; in AcquireDistributeCacheInfo()
356 (void) CopyMagickString(server_info->hostname,hostname,MagickPathExtent); in AcquireDistributeCacheInfo()
357 server_info->debug=IsEventLogging(); in AcquireDistributeCacheInfo()
360 return(server_info); in AcquireDistributeCacheInfo()
388 DistributeCacheInfo *server_info) in DestroyDistributeCacheInfo() argument
390 assert(server_info != (DistributeCacheInfo *) NULL); in DestroyDistributeCacheInfo()
391 assert(server_info->signature == MagickCoreSignature); in DestroyDistributeCacheInfo()
392 if (server_info->file > 0) in DestroyDistributeCacheInfo()
393 CLOSE_SOCKET(server_info->file); in DestroyDistributeCacheInfo()
394 server_info->signature=(~MagickCoreSignature); in DestroyDistributeCacheInfo()
395 server_info=(DistributeCacheInfo *) RelinquishMagickMemory(server_info); in DestroyDistributeCacheInfo()
396 return(server_info); in DestroyDistributeCacheInfo()
1028 MagickPrivate int GetDistributeCacheFile(const DistributeCacheInfo *server_info) in GetDistributeCacheFile() argument
1030 assert(server_info != (DistributeCacheInfo *) NULL); in GetDistributeCacheFile()
1031 assert(server_info->signature == MagickCoreSignature); in GetDistributeCacheFile()
1032 return(server_info->file); in GetDistributeCacheFile()
1060 const DistributeCacheInfo *server_info) in GetDistributeCacheHostname() argument
1062 assert(server_info != (DistributeCacheInfo *) NULL); in GetDistributeCacheHostname()
1063 assert(server_info->signature == MagickCoreSignature); in GetDistributeCacheHostname()
1064 return(server_info->hostname); in GetDistributeCacheHostname()
1090 MagickPrivate int GetDistributeCachePort(const DistributeCacheInfo *server_info) in GetDistributeCachePort() argument
1092 assert(server_info != (DistributeCacheInfo *) NULL); in GetDistributeCachePort()
1093 assert(server_info->signature == MagickCoreSignature); in GetDistributeCachePort()
1094 return(server_info->port); in GetDistributeCachePort()
1123 DistributeCacheInfo *server_info,Image *image) in OpenDistributePixelCache() argument
1144 assert(server_info != (DistributeCacheInfo *) NULL); in OpenDistributePixelCache()
1145 assert(server_info->signature == MagickCoreSignature); in OpenDistributePixelCache()
1153 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in OpenDistributePixelCache()
1154 p+=sizeof(server_info->session_key); in OpenDistributePixelCache()
1174 count=dpc_send(server_info->file,p-message,message); in OpenDistributePixelCache()
1178 count=dpc_read(server_info->file,sizeof(status),(unsigned char *) &status); in OpenDistributePixelCache()
1218 DistributeCacheInfo *server_info,const RectangleInfo *region, in ReadDistributePixelCacheMetacontent() argument
1233 assert(server_info != (DistributeCacheInfo *) NULL); in ReadDistributePixelCacheMetacontent()
1234 assert(server_info->signature == MagickCoreSignature); in ReadDistributePixelCacheMetacontent()
1241 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in ReadDistributePixelCacheMetacontent()
1242 p+=sizeof(server_info->session_key); in ReadDistributePixelCacheMetacontent()
1253 count=dpc_send(server_info->file,p-message,message); in ReadDistributePixelCacheMetacontent()
1256 return(dpc_read(server_info->file,length,metacontent)); in ReadDistributePixelCacheMetacontent()
1293 DistributeCacheInfo *server_info,const RectangleInfo *region, in ReadDistributePixelCachePixels() argument
1308 assert(server_info != (DistributeCacheInfo *) NULL); in ReadDistributePixelCachePixels()
1309 assert(server_info->signature == MagickCoreSignature); in ReadDistributePixelCachePixels()
1316 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in ReadDistributePixelCachePixels()
1317 p+=sizeof(server_info->session_key); in ReadDistributePixelCachePixels()
1328 count=dpc_send(server_info->file,p-message,message); in ReadDistributePixelCachePixels()
1331 return(dpc_read(server_info->file,length,pixels)); in ReadDistributePixelCachePixels()
1359 DistributeCacheInfo *server_info) in RelinquishDistributePixelCache() argument
1380 assert(server_info != (DistributeCacheInfo *) NULL); in RelinquishDistributePixelCache()
1381 assert(server_info->signature == MagickCoreSignature); in RelinquishDistributePixelCache()
1384 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in RelinquishDistributePixelCache()
1385 p+=sizeof(server_info->session_key); in RelinquishDistributePixelCache()
1386 count=dpc_send(server_info->file,p-message,message); in RelinquishDistributePixelCache()
1389 count=dpc_read(server_info->file,sizeof(status),(unsigned char *) &status); in RelinquishDistributePixelCache()
1429 DistributeCacheInfo *server_info,const RectangleInfo *region, in WriteDistributePixelCacheMetacontent() argument
1444 assert(server_info != (DistributeCacheInfo *) NULL); in WriteDistributePixelCacheMetacontent()
1445 assert(server_info->signature == MagickCoreSignature); in WriteDistributePixelCacheMetacontent()
1452 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in WriteDistributePixelCacheMetacontent()
1453 p+=sizeof(server_info->session_key); in WriteDistributePixelCacheMetacontent()
1464 count=dpc_send(server_info->file,p-message,message); in WriteDistributePixelCacheMetacontent()
1467 return(dpc_send(server_info->file,length,metacontent)); in WriteDistributePixelCacheMetacontent()
1505 DistributeCacheInfo *server_info,const RectangleInfo *region, in WriteDistributePixelCachePixels() argument
1520 assert(server_info != (DistributeCacheInfo *) NULL); in WriteDistributePixelCachePixels()
1521 assert(server_info->signature == MagickCoreSignature); in WriteDistributePixelCachePixels()
1528 (void) memcpy(p,&server_info->session_key,sizeof(server_info->session_key)); in WriteDistributePixelCachePixels()
1529 p+=sizeof(server_info->session_key); in WriteDistributePixelCachePixels()
1540 count=dpc_send(server_info->file,p-message,message); in WriteDistributePixelCachePixels()
1543 return(dpc_send(server_info->file,length,pixels)); in WriteDistributePixelCachePixels()