Show us your desktop
I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cppSplitting up source into multiple files and indenting is for wimps
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp
Maybe that is where we are all going wrong. Instead of spending time making all the source look pretty we should just code.
remeber im a warrior :-)
but now its less worst. Next games are better, but.. i dont think this affect the player :-)
but now its less worst. Next games are better, but.. i dont think this affect the player :-)
------------
------------
" It's a secret to everybody "
" It's a secret to everybody "
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cppcan you imagine what that must be like to work with another person on in subethaedit
skyhawk Wrote:can you imagine what that must be like to work with another person on in subethaedityou can ask fccovettt about that !
but i keep my code simple nad im making a lot of comment and im using some pragma mark to make differents parts
now im using differents file , but im old school coder and im coding like with AmosBasic
>but im old school coder and im coding like with AmosBasic
I hope your next project is MacAmosBasic.
Too many memories (and $$ spent of updates)!
I hope your next project is MacAmosBasic.

Too many memories (and $$ spent of updates)!
Carlos A. Camacho,
Founder
iDevGames
I was going to paste my URL but with the number of users on iDG my internet would soon be dead.
deamon.c (directly theived from beej's tutorials)
something.php
deamon.c (directly theived from beej's tutorials)
Code:
/*
** listener.c -- a datagram sockets "server" demo
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define MYPORT 4950 // the port users will be connecting to
#define MAXBUFLEN 100
#define BACKLOG 1
int sockfd;
void endofline(int someparam)
{
printf("\nBye!!!!!!\n");
close(sockfd);
exit(0);
}
int main(void)
{
struct sockaddr_in my_addr; // my address information
struct sockaddr_in their_addr; // connector's address information
socklen_t addr_len;
int numbytes;
char buf[MAXBUFLEN];
unsigned int sin_size;
int new_fd;
signal(SIGINT, endofline);
if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {
perror("socket");
exit(1);
}
my_addr.sin_family = AF_INET; // host byte order
my_addr.sin_port = htons(MYPORT); // short, network byte order
my_addr.sin_addr.s_addr = INADDR_ANY; // automatically fill with my IP
memset(&(my_addr.sin_zero), '\0', 8); // zero the rest of the struct
if (bind(sockfd, (struct sockaddr *)&my_addr,
sizeof(struct sockaddr)) == -1) {
perror("bind");
exit(1);
}
listen(sockfd, BACKLOG);
while(1) {
sin_size = sizeof(struct sockaddr_in);
new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size);
addr_len = sizeof(struct sockaddr);
if ((numbytes=recv(new_fd, buf, MAXBUFLEN-1 , 0)) == -1) {
perror("recvfrom");
exit(1);
}
//printf("got packet from %s\n",inet_ntoa(their_addr.sin_addr));
//printf("packet is %d bytes long\n",numbytes);
buf[numbytes] = '\0';
//printf("packet contains \"%s\"\n",buf);
printf("Taking screenshot %d%d%d%d%d for %s\n", random()%10, random()%10, random()%10, random()%10, random()%10, buf);
system("screencapture -x -C -tjpg /Users/ed/Sites/tmp.jpg");
send(new_fd, "sup d000d", 9, 0);
close(new_fd);
}
close(sockfd);
return 0;
}something.php
Code:
<html>
<head>
</head>
<body>
<?php
error_reporting(E_ALL);
/* Allow the script to hang around waiting for connections. */
set_time_limit(0);
/* Turn on implicit output flushing so we see what we're getting
* as it comes in. */
ob_implicit_flush();
$address = '127.0.0.1';
$port = 4950;
if (($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) < 0) {
#echo "socket_create() failed: reason: " . socket_strerror($sock) . "\n";
}
$result = socket_connect($socket, $address, $port);
if ($result < 0) {
#echo "socket_connect() failed.\nReason: ($result) " . socket_strerror($result) . "\n";
} else {
#echo "OK.\n";
}
$msg = $_SERVER['REMOTE_ADDR'];
socket_write($socket, $msg, strlen($msg));
#echo "Reading response:\n\n";
while ($out = socket_read($socket, 1)) {
#echo $out;
}
#echo "Closing socket...";
socket_close($socket);
#echo "OK.\n\n";
echo "<img src=\"tmp.jpg\" alt=\"stuff\"></img>";
?>
</body>
</html>Sir, e^iπ + 1 = 0, hence God exists; reply!
You can guess once which key has become my favorite... Thanks for Exposé, Apple!
![[Image: screenie01.jpg]](http://www.2w6.ch/~sacha/screenie01.jpg)
For the record: She's just a good friend and a very sweet person. (And no, I wasn't the photographer
)
![[Image: screenie01.jpg]](http://www.2w6.ch/~sacha/screenie01.jpg)
For the record: She's just a good friend and a very sweet person. (And no, I wasn't the photographer
)
I need to go to Switzerland 
My current desktop (subject to change in the future):

My current desktop (subject to change in the future):
"When you dream, there are no rules..."
my deskyop. I even had to tile a black image since OSX didnt let me chose a black background
©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
^
|
I think I recognize half those icons, its wierd you can't get just a black background *remebers classic*. Glad to see that I'm not the only one with EV Nova lying around...
|
I think I recognize half those icons, its wierd you can't get just a black background *remebers classic*. Glad to see that I'm not the only one with EV Nova lying around...
When in doubt ... read the Read Me
10.5.6 | MacBook Pro 2.5x2 | 4 GB RAM | GeForce 8600M GT
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Show me the money | Carlos Camacho | 13 | 5,504 |
Nov 12, 2008 06:17 PM Last Post: Carlos Camacho |
|

