Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 150751 Details for
Bug 233608
Native SCTP - traffic randomly stops on RedHat AS4 Update 4
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
pitcher source code
pitcher.c (text/plain), 1.80 KB, created by
William Reich
on 2007-03-23 13:12:23 UTC
(
hide
)
Description:
pitcher source code
Filename:
MIME Type:
Creator:
William Reich
Created:
2007-03-23 13:12:23 UTC
Size:
1.80 KB
patch
obsolete
>/****************************************************************************** > Copyright (c) 2005 Ulticom, Inc. > >File: catcher.c >Author: Anatoly Khusid >Created: 10/21/05 >Description: >*******************************************************************************/ > >#include <sys/types.h> >#include <sys/socket.h> >#include <netinet/in.h> >#include<stdio.h> >#include<string.h> >#include<stdlib.h> >#include<netinet/sctp.h> > > >int >main(int argc, char **argv) >{ > struct sockaddr_in in4; > struct sockaddr *sockaddr; > socklen_t socklen; > int fd; > int port = 0; > char buf[100]; > > > int i; > int new_fd; > > port = 10000; > > for ( i = 0; i < argc; i++ ) > { > if ( !strcmp(argv[i], "-port") && i+1 < argc ) > { > port = atoi(argv[++i]); > } > } > printf("using port = %d\n", port ); > > if ( (fd = socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP)) == -1) > { > perror("socket()"); > exit(1); > } > memset(&in4, 0, sizeof(in4)); > in4.sin_family = AF_INET; > in4.sin_port = htons(0); > in4.sin_addr.s_addr = INADDR_ANY; > sockaddr = (struct sockaddr *) &in4; > socklen = sizeof(in4); > > printf("socklen = %d\n", socklen); > > if ( bind(fd, sockaddr, socklen) == -1) > { > perror("bind()");exit(1); > } > > memset(&in4, 0, sizeof(in4)); > in4.sin_family = AF_INET; > in4.sin_port = htons(port); > in4.sin_addr.s_addr = inet_addr("172.25.5.228"); > sockaddr = (struct sockaddr *) &in4; > socklen = sizeof(in4); > > printf("tring to connect to the server\n"); > > if ( connect(fd, sockaddr, socklen) == -1 ) > { > perror("connect() failed"); > } > printf("connected, start sending\n"); > > i = 0; > while(1) > { > if (send(fd, buf, 30, 0) != 30 ) > { > perror("send() failed"); > exit(1); > } > if( (i++%10000) == 0 ) > { > printf("pid=%d, msg sent=%d\n", getpid(), i); > fflush(stdout); > } > > } > > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 233608
:
150748
|
150749
|
150750
| 150751 |
150752
|
150753
|
150754
|
158214
|
159542